package cn.stylefeng.guns.modular.business.frequency.cmarea.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import cn.stylefeng.guns.modular.business.frequency.cmarea.entity.CmArea;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

import java.util.List;

/**
 * cm_area Mapper 接口
 *
 * @author yujie
 * @date 2023/05/09 17:17
 */
public interface CmAreaMapper extends BaseMapper<CmArea> {

    CmArea getAreaByCode(@Param("code") String code);

    int countByCode(@Param("isUpdate") boolean isUpdate, @Param("code") String code);

    void deleteArea(@Param("code") String code);

    List<CmArea> getAreaListByCityCode(@Param("cityCode") String startCode);

    String getNameByCode(@Param("code") String pickAreaCode);
}